import {createApp} from 'vue'
import App from './App.vue'
import router from "./router";
import {createPinia} from "pinia";

import "./assets/css/index.css";
//导入element-plus
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import 'element-plus/dist/index.css'

//导入pinia持久化插件
import PiniaPuginPersistedState from "pinia-plugin-persistedstate";

import PageView from "./components/PageView.vue";

const app = createApp(App);

const pinia=createPinia();

 
pinia.use(PiniaPuginPersistedState);
app.component("page-view", PageView);
app.use(pinia);


app.provide("baseURL",baseURL);
app.use(ElementPlus, {
    locale: zhCn,
  });
app.use(router);
app.mount('#app')
